﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200116B RID: 4459
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetIsDisplayAvatarInfoScRsp : IMessage<SetIsDisplayAvatarInfoScRsp>, IMessage, IEquatable<SetIsDisplayAvatarInfoScRsp>, IDeepCloneable<SetIsDisplayAvatarInfoScRsp>, IBufferMessage
	{
		// Token: 0x1700386B RID: 14443
		// (get) Token: 0x0600C78E RID: 51086 RVA: 0x0021A2E9 File Offset: 0x002184E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetIsDisplayAvatarInfoScRsp> Parser
		{
			get
			{
				return SetIsDisplayAvatarInfoScRsp._parser;
			}
		}

		// Token: 0x1700386C RID: 14444
		// (get) Token: 0x0600C78F RID: 51087 RVA: 0x0021A2F0 File Offset: 0x002184F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetIsDisplayAvatarInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700386D RID: 14445
		// (get) Token: 0x0600C790 RID: 51088 RVA: 0x0021A302 File Offset: 0x00218502
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetIsDisplayAvatarInfoScRsp.Descriptor;
			}
		}

		// Token: 0x0600C791 RID: 51089 RVA: 0x0021A309 File Offset: 0x00218509
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetIsDisplayAvatarInfoScRsp()
		{
		}

		// Token: 0x0600C792 RID: 51090 RVA: 0x0021A311 File Offset: 0x00218511
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetIsDisplayAvatarInfoScRsp(SetIsDisplayAvatarInfoScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.isDisplay_ = other.isDisplay_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C793 RID: 51091 RVA: 0x0021A342 File Offset: 0x00218542
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetIsDisplayAvatarInfoScRsp Clone()
		{
			return new SetIsDisplayAvatarInfoScRsp(this);
		}

		// Token: 0x1700386E RID: 14446
		// (get) Token: 0x0600C794 RID: 51092 RVA: 0x0021A34A File Offset: 0x0021854A
		// (set) Token: 0x0600C795 RID: 51093 RVA: 0x0021A352 File Offset: 0x00218552
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700386F RID: 14447
		// (get) Token: 0x0600C796 RID: 51094 RVA: 0x0021A35B File Offset: 0x0021855B
		// (set) Token: 0x0600C797 RID: 51095 RVA: 0x0021A363 File Offset: 0x00218563
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsDisplay
		{
			get
			{
				return this.isDisplay_;
			}
			set
			{
				this.isDisplay_ = value;
			}
		}

		// Token: 0x0600C798 RID: 51096 RVA: 0x0021A36C File Offset: 0x0021856C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetIsDisplayAvatarInfoScRsp);
		}

		// Token: 0x0600C799 RID: 51097 RVA: 0x0021A37A File Offset: 0x0021857A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetIsDisplayAvatarInfoScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.IsDisplay == other.IsDisplay && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C79A RID: 51098 RVA: 0x0021A3B8 File Offset: 0x002185B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.IsDisplay)
			{
				num ^= this.IsDisplay.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C79B RID: 51099 RVA: 0x0021A410 File Offset: 0x00218610
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C79C RID: 51100 RVA: 0x0021A418 File Offset: 0x00218618
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C79D RID: 51101 RVA: 0x0021A424 File Offset: 0x00218624
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsDisplay)
			{
				output.WriteRawTag(16);
				output.WriteBool(this.IsDisplay);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C79E RID: 51102 RVA: 0x0021A480 File Offset: 0x00218680
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.IsDisplay)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C79F RID: 51103 RVA: 0x0021A4CC File Offset: 0x002186CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetIsDisplayAvatarInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.IsDisplay)
			{
				this.IsDisplay = other.IsDisplay;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C7A0 RID: 51104 RVA: 0x0021A51C File Offset: 0x0021871C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C7A1 RID: 51105 RVA: 0x0021A528 File Offset: 0x00218728
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 40U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.IsDisplay = input.ReadBool();
				}
			}
		}

		// Token: 0x04005031 RID: 20529
		private static readonly MessageParser<SetIsDisplayAvatarInfoScRsp> _parser = new MessageParser<SetIsDisplayAvatarInfoScRsp>(() => new SetIsDisplayAvatarInfoScRsp());

		// Token: 0x04005032 RID: 20530
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005033 RID: 20531
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04005034 RID: 20532
		private uint retcode_;

		// Token: 0x04005035 RID: 20533
		public const int IsDisplayFieldNumber = 2;

		// Token: 0x04005036 RID: 20534
		private bool isDisplay_;
	}
}
